﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JTZY.Model.Goods.Dto
{
    public class ProductStockDto
    {
        [ExcelIgnore]
        public long Id { get; set; }
        [ExcelIgnore]
        public string SkuImage { get; set; }
        [ExcelColumnName("商品名称")]
        public string SkuName { get; set; }
        /// <summary>
        /// 商品编码
        /// </summary>
        [ExcelColumnName("商品编码")]
        public string Sn { get; set; }
        [ExcelColumnName("商品69码")]
        public string BarCode { get; set; }
        [ExcelIgnore]
        public int? CategoryId { get; set; }
        [ExcelIgnore]
        public int? FirstCategoryId { get; set; }
        [ExcelIgnore]
        public int? SecondCategoryId { get; set; }

        [ExcelColumnName("商品分类")]
        public string CategoryName { get; set; }
        [ExcelColumnName("总库存")]

        public int? TotalStock { get; set; }
        [ExcelColumnName("本仓库存")]
        public int? Stock { get; set; }
      
        [ExcelColumnName("小仓库存")]
        public int? MinStock { get; set; }
        [ExcelIgnore]
        public int StockWarn { get; set; }
        [ExcelColumnName("成本价")]
        public decimal CostPrice { get; set; }
        [ExcelColumnName("普通用户价格")]
        public decimal VIP0 { get; set; }
        [ExcelColumnName("VIP1价格")]
        public decimal VIP1 { get; set; }
        [ExcelColumnName("VIP2价格")]
        public decimal VIP2 { get; set; }
        [ExcelColumnName("VIP3价格")]
        public decimal VIP3 { get; set; }
        [ExcelColumnName("VIP4价格")]
        public decimal VIP4 { get; set; }
        [ExcelColumnName("商品品牌")]
        public string SkuBrandName { get; set; }
        [ExcelIgnore]
        public int SkuBrandId { get; set; }
        [ExcelColumnName("位置")]

        public string SkuLocation { get; set; }
        [ExcelIgnore]
        public string Atrr { get; set; }
        [ExcelIgnore]
        public int Marketable { get; set; }
        [ExcelIgnore]
        public DateTime? CreateTime { get; set; }
        [ExcelIgnore]
        public int ProductId { get; set; }
        [ExcelColumnName("物码")]
        public string SnCodes { get; set; }
    }

    public class ProductMiniStockDto
    {
        [ExcelIgnore]
        public long Id { get; set; }
        [ExcelIgnore]
        public string SkuImage { get; set; }
        [ExcelColumnName("商品名称")]
        public string SkuName { get; set; }
        /// <summary>
        /// 商品编码
        /// </summary>
        [ExcelColumnName("商品编码")]
        public string Sn { get; set; }
        [ExcelColumnName("商品69码")]
        public string BarCode { get; set; }
        [ExcelColumnName("所在小仓")]
        public string UserName { get; set; }
        [ExcelIgnore]
        public int? CategoryId { get; set; }
        [ExcelIgnore]
        public int? FirstCategoryId { get; set; }
        [ExcelIgnore]
        public int? SecondCategoryId { get; set; }

        [ExcelColumnName("商品分类")]
        public string CategoryName { get; set; }


        [ExcelColumnName("小仓库存")]
        public int? MinStock { get; set; }

        [ExcelColumnName("商品品牌")]
        public string SkuBrandName { get; set; }
        [ExcelIgnore]
        public int SkuBrandId { get; set; }
        [ExcelColumnName("位置")]

        public string SkuLocation { get; set; }
        [ExcelIgnore]
        public string Atrr { get; set; }
        [ExcelIgnore]
        public int Marketable { get; set; }
        [ExcelIgnore]
        public DateTime? CreateTime { get; set; }
        [ExcelIgnore]
        public int ProductId { get; set; }
        [ExcelColumnName("物码")]
        public string SnCodes { get; set; }
    }

    public class UserStockDto 
    {
        public int stock { get; set; } = 0;
        public int nums { get; set; } = 0;
        public decimal? amount { get; set; }
    }
}
